package com.jiangge.caiji.utils;

public enum WebResource {
	
	kongfu("动作片", "http://hao.uoso.net/index.php?s=vod-show-id-1-p-1.html","kongfu");
	
	private WebResource(String name,String url,String type){
		this.name = name;
		this.url = url;
		this.type = type;
	}
	
    public static String getUrl(String type) {  
        for (WebResource c : WebResource.values()) {  
            if (c.getType() == type) {  
                return c.url;  
            }  
        }  
        return null;  
    }  
	
	private String name;
	private String url;
	private String type;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public static void main(String[] s){
		System.out.println(WebResource.getUrl("kongfu"));
	}
	
}
